import { TUseCaseEngineerQueryPage } from "@/gcfx_web/defaultConfig/config";

const useCaseEngineerQueryPage: TUseCaseEngineerQueryPage = () => {
  const getCardShowItems = (record: any, extra?: any) => {
    const list = [{ label: "地区", value: record.dqmc }];
    // 有值时(其它单位工程) 才显示来源
    if (record.lymc) list.push({ label: "来源", value: record.lymc });
    return list;
  };

  return {
    getCardShowItems,
    cardTittleField: "gcmc",
  };
};

export default useCaseEngineerQueryPage;
